module.exports = (sequelize, Types) => {
    const ProjectAction = sequelize.define('ProjectAction', {
        project_id: {
            type: Types.INTEGER,
            primaryKey: true,
            autoIncrement: true,
        },
        auto_start: Types.BIT(1),
        really_start_time: Types.DATETIME,
        auto_end: Types.BIT(1),
        really_end_time: Types.DATETIME,
        auto_end_action: Types.INTEGER(11),
        really_end_action: Types.INTEGER(11),
    },{
        tableName:'project_action'
    });
    ProjectAction.sync();
    return ProjectAction;
};